package cn.edu.gench.learn.day9;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Administrator on 2017/4/26.
 */
@Service
public class CityService {
    @Autowired
    CityDao cityDao;

    public List<CityModel> showCity(){
        return cityDao.getCity();
    }

    public CityModel showCityOne(int id) {
        return cityDao.getCityOne(id);
    }
}
